/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* 布局 */
.sidebar {
    min-height: 100vh;
    background-color: var(--light-color);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.main-content {
    padding: 20px;
    background-color: #fff;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* 系统监控卡片 */
.system-info .card {
    border-radius: 10px;
}

.system-info .card-body {
    padding: 1.5rem;
}

.system-info .card-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-info .card-text {
    color: var(--dark-color);
    font-weight: bold;
}

/* 脚本卡片 */
.script-card {
    margin-bottom: 20px;
}

.script-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.script-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.status-running {
    background-color: var(--success-color);
    color: white;
}

.status-stopped {
    background-color: var(--danger-color);
    color: white;
}

.status-completed {
    background-color: var(--info-color);
    color: white;
}

/* 导航样式 */
.nav-link {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    background-color: rgba(0,123,255,0.1);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    padding: 0.375rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn i {
    margin-right: 5px;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 文件树样式 */
.file-tree {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
}

.file-tree .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
}

.file-tree .list-group-item:first-child {
    border-top: none;
}

.file-tree .list-group-item:last-child {
    border-bottom: none;
}

.file-tree .python-file {
    color: #3572A5;
}

.file-tree .main-file {
    font-weight: bold;
}

/* 表单样式 */
.form-control {
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.2);
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .system-info .card {
        margin-bottom: 20px;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
    }
} 